<template>
  <div>
    <examDetail
      ref="examination"
      :loading="loading"
      :examInfo="examInfo"
      :titleName="titleName"
      :endTime="null"
    ></examDetail>
  </div>
</template>
  
<script>
import examDetail from "./components/examDetail";
import { getExamPaper } from "@/api/exam/actionExam";

export default {
  name: "examDetial",
  components: {
    examDetail,
  },
  data() {
    return {
      titleName: "考试详情",
      examInfo: {},
      loading: false,
    };
  },
  created() {
    this.getExaminationAnswerList();
  },
  methods: {
    async getExaminationAnswerList() {
      this.loading = true;
      let res;
      try {
        res = await getExamPaper(this.$route.query.id);
      } catch (e) {
        console.error(e);
      }
      if (res) {
        this.examInfo = res.examPaper;
        this.loading = false;
      } else {
        this.loading = false;
      }
    },
  },
};
</script>
  
    <style scoped>
</style>
  